package com.jye.cloud.user.mapper;

import com.jye.cloud.domain.Record;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecordMapper {
    Record findRecordById(@Param("id") int id);

    List<Record> findMyRecordByUId(@Param("uId")int uId);

    List<Record> findMyRecordByUIdLimit(@Param("uId")int uId, @Param("skip")Integer skip, @Param("limit")Integer limit);

    int addRecord(@Param("rec")Record rec);

    Integer isExit(@Param("uId")Integer uId,@Param("pId") Integer pId);

    List<Record> findRecordByPId(@Param("pId")Integer pId);
}
